<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}论文题目查重系统{% endblock %}</title>
    <link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='paper_plane_icon.svg') }}">
    <style>
        :root {
            --primary-color: #9b59b6;
            --secondary-color: #2c3e50;
            --success-color: #27ae60;
            --warning-color: #f39c12;
            --danger-color: #e74c3c;
            --light-bg: #f8f9fa;
            --dark-bg: #2c3e50;
            --text-color: #333;
            --text-light: #f8f9fa;
            --border-radius: 12px;
            --box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            --transition: all 0.3s ease;
        }

        /* 暗色主题变量 */
        .dark-theme {
            --primary-color: #af7ac5;
            --secondary-color: #85929e;
            --success-color: #58d68d;
            --warning-color: #f7dc6f;
            --danger-color: #ec7063;
            --light-bg: #34495e;
            --dark-bg: #2c3e50;
            --text-color: #ecf0f1;
            --text-light: #ecf0f1;
        }

        body {
            font-family: "Microsoft YaHei", "SimSun", sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            margin: 0;
            padding: 20px;
            color: var(--text-color);
            min-height: 100vh;
            transition: var(--transition);
        }

        body.dark-mode {
            background: linear-gradient(135deg, #1a2330 0%, #2c3e50 100%);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background-color: white;
            padding: 30px;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            transition: var(--transition);
            position: relative;
        }

        body.dark-mode .container {
            background-color: var(--dark-bg);
        }

        h1 {
            text-align: center;
            color: var(--secondary-color);
            margin-bottom: 10px;
            font-size: 28px;
            position: relative;
        }

        body.dark-mode h1 {
            color: #ecf0f1;
        }

        h1:after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background: linear-gradient(to right, var(--primary-color), var(--success-color));
            margin: 10px auto;
            border-radius: 2px;
        }

        .subtitle {
            text-align: center;
            color: var(--secondary-color);
            margin-top: 0;
            margin-bottom: 30px;
            font-size: 16px;
        }

        body.dark-mode .subtitle {
            color: #bdc3c7;
        }

        .input-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: var(--secondary-color);
        }

        body.dark-mode label {
            color: #d5dbdb;
        }

        input, textarea, select {
            width: 100%;
            padding: 15px;
            border: 2px solid #e1e5eb;
            border-radius: var(--border-radius);
            font-size: 16px;
            box-sizing: border-box;
            transition: var(--transition);
            background-color: white;
            color: var(--text-color);
        }

        body.dark-mode input, 
        body.dark-mode textarea, 
        body.dark-mode select {
            background-color: #34495e;
            border-color: #3d566e;
            color: var(--text-light);
        }

        input:focus, textarea:focus, select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.2);
            outline: none;
        }

        textarea {
            height: 150px;
            resize: vertical;
        }

        .btn-group {
            display: flex;
            gap: 15px;
            margin-top: 20px;
            flex-wrap: wrap;
        }

        button {
            flex: 1;
            background: linear-gradient(135deg, var(--primary-color), #8e44ad);
            color: white;
            border: none;
            padding: 15px 20px;
            font-size: 18px;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: var(--transition);
            font-weight: bold;
            box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
            min-width: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        button:hover {
            background: linear-gradient(135deg, #8e44ad, var(--primary-color));
            transform: translateY(-2px);
            box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
        }

        button:active {
            transform: translateY(1px);
        }

        .btn-success {
            background: linear-gradient(135deg, var(--success-color), #219653);
        }

        .btn-success:hover {
            background: linear-gradient(135deg, #219653, var(--success-color));
        }

        .btn-warning {
            background: linear-gradient(135deg, var(--warning-color), #e67e22);
            color: #2c3e50;
        }

        body.dark-mode .btn-warning {
            color: #2c3e50;
        }

        .btn-warning:hover {
            background: linear-gradient(135deg, #e67e22, var(--warning-color));
        }

        .btn-info {
            background: linear-gradient(135deg, #3498db, #2980b9);
        }

        .btn-info:hover {
            background: linear-gradient(135deg, #2980b9, #3498db);
        }

        /* 模态框样式 */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.5);
            transition: var(--transition);
        }

        .modal-content {
            background-color: white;
            margin: 15% auto;
            padding: 30px;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            width: 90%;
            max-width: 600px;
            animation: modalFadeIn 0.3s ease-out;
            position: relative;
        }

        body.dark-mode .modal-content {
            background-color: var(--dark-bg);
        }

        .close-button {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 24px;
            font-weight: bold;
            color: var(--text-color);
            cursor: pointer;
            transition: var(--transition);
        }

        .close-button:hover {
            color: var(--primary-color);
        }

        .contact-methods {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            gap: 30px;
            margin-top: 20px;
        }

        .contact-item {
            text-align: center;
        }

        .contact-item h4 {
            margin-bottom: 15px;
            color: var(--secondary-color);
        }

        body.dark-mode .contact-item h4 {
            color: var(--text-light);
        }

        .contact-qrcode {
            width: 200px;
            height: 200px;
            border-radius: var(--border-radius);
            border: 2px solid #e1e5eb;
            transition: var(--transition);
        }

        body.dark-mode .contact-qrcode {
            border-color: #3d566e;
        }

        .contact-qrcode:hover {
            transform: scale(1.05);
            box-shadow: var(--box-shadow);
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .btn-danger {
            background: linear-gradient(135deg, var(--danger-color), #c0392b);
        }

        .btn-danger:hover {
            background: linear-gradient(135deg, #c0392b, var(--danger-color));
        }

        .back-link {
            display: inline-block;
            margin-bottom: 20px;
            color: var(--primary-color);
            text-decoration: none;
            padding: 10px 15px;
            border-radius: 5px;
            background-color: var(--light-bg);
            transition: var(--transition);
        }

        body.dark-mode .back-link {
            background-color: #34495e;
            color: var(--primary-color);
        }

        .back-link:hover {
            background-color: #e9ecef;
            text-decoration: none;
        }

        body.dark-mode .back-link:hover {
            background-color: #3d566e;
        }

        .result {
            margin-top: 25px;
            padding: 20px;
            border-radius: var(--border-radius);
            background-color: var(--light-bg);
            white-space: pre-wrap;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            border-left: 4px solid var(--primary-color);
            transition: var(--transition);
        }

        body.dark-mode .result {
            background-color: #34495e;
        }

        .status-info {
            display: flex;
            gap: 20px;
            margin: 25px 0;
            flex-wrap: wrap;
        }

        .status-card {
            flex: 1;
            min-width: 200px;
            padding: 20px;
            border-radius: var(--border-radius);
            background: linear-gradient(120deg, #e3f2fd, #bbdefb);
            text-align: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        body.dark-mode .status-card {
            background: linear-gradient(120deg, #3d566e, #2c3e50);
        }

        .status-card h3 {
            margin-top: 0;
            color: var(--secondary-color);
        }

        body.dark-mode .status-card h3 {
            color: #ecf0f1;
        }

        .upload-area {
            border: 2px dashed var(--primary-color);
            border-radius: var(--border-radius);
            padding: 30px;
            text-align: center;
            margin-bottom: 20px;
            background-color: var(--light-bg);
            transition: var(--transition);
        }

        body.dark-mode .upload-area {
            background-color: #34495e;
        }

        .upload-area:hover {
            background-color: #e3f2fd;
            border-color: #8e44ad;
        }

        body.dark-mode .upload-area:hover {
            background-color: #3d566e;
        }

        .upload-area h3 {
            margin-top: 0;
            color: var(--secondary-color);
        }

        body.dark-mode .upload-area h3 {
            color: #ecf0f1;
        }

        input[type="file"] {
            margin-bottom: 20px;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }

        body.dark-mode input[type="file"] {
            border-color: #3d566e;
        }

        .summary {
            background: linear-gradient(120deg, #e0f7e0, #c8e6c9);
            padding: 20px;
            border-radius: var(--border-radius);
            margin-bottom: 25px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        body.dark-mode .summary {
            background: linear-gradient(120deg, #1e531e, #2a6d2a);
        }

        .detail-item {
            margin-bottom: 15px;
            padding: 15px;
            border-radius: var(--border-radius);
            background-color: var(--light-bg);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            border-left: 4px solid var(--primary-color);
            transition: var(--transition);
        }

        body.dark-mode .detail-item {
            background-color: #34495e;
        }

        .detail-item:last-child {
            margin-bottom: 0;
        }

        .warning {
            color: var(--danger-color);
            font-weight: bold;
            border-left-color: var(--danger-color);
        }

        .passed {
            color: var(--success-color);
            font-weight: bold;
            border-left-color: var(--success-color);
        }

        .error {
            background-color: #ffebee;
            color: #c62828;
            padding: 15px;
            border-radius: var(--border-radius);
            margin-bottom: 15px;
            border-left: 4px solid var(--danger-color);
        }

        body.dark-mode .error {
            background-color: #4d1a1a;
            color: #ffcccc;
        }

        .loading {
            text-align: center;
            color: #7f8c8d;
            padding: 20px;
            display: none;
        }

        body.dark-mode .loading {
            color: #bdc3c7;
        }

        .loading:after {
            content: " ";
            display: inline-block;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 3px solid var(--primary-color);
            border-top-color: transparent;
            animation: spin 1s linear infinite;
            margin-left: 10px;
            vertical-align: middle;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .system-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 20px;
            padding: 15px;
            background-color: #e3f2fd;
            border-radius: var(--border-radius);
            font-size: 14px;
        }

        body.dark-mode .system-info {
            background-color: #3d566e;
        }

        .notification {
            padding: 15px;
            border-radius: var(--border-radius);
            margin-bottom: 20px;
            text-align: center;
            font-weight: bold;
        }

        .notification.info {
            background-color: #e3f2fd;
            color: #1976d2;
        }

        body.dark-mode .notification.info {
            background-color: #3d566e;
            color: #85c1e9;
        }

        .notification.warning {
            background-color: #fff3e0;
            color: #f57c00;
        }

        body.dark-mode .notification.warning {
            background-color: #5d503b;
            color: #f8c471;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .container {
                padding: 15px;
                margin: 10px;
            }
            
            .btn-group {
                flex-direction: column;
            }
            
            button {
                width: 100%;
                margin-bottom: 10px;
            }
            
            .system-info {
                flex-direction: column;
                gap: 10px;
                text-align: center;
            }
            
            .status-info {
                flex-direction: column;
            }
            
            .hide-on-mobile {
                display: none;
            }
            
            /* 移动端卡片式布局 */
            .mobile-card {
                border: 1px solid #ddd;
                border-radius: 12px;
                padding: 15px;
                margin-bottom: 15px;
                background: white;
                box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            }
            
            body.dark-mode .mobile-card {
                background: #34495e;
                border-color: #3d566e;
            }
            
            h1 {
                font-size: 24px;
            }
            
            .subtitle {
                font-size: 14px;
            }
            
            input, textarea, select {
                padding: 12px;
                font-size: 16px; /* 防止iOS缩放 */
            }
            
            .status-card {
                min-width: auto;
            }
        }

        @media (max-width: 480px) {
            h1 {
                font-size: 22px;
            }
            
            .btn-group {
                flex-direction: column;
            }
            
            .btn-group button {
                width: 100%;
                margin-bottom: 10px;
            }
            
            /* 卡片式布局替代表格 */
            .mobile-card {
                border: 1px solid #ddd;
                border-radius: 12px;
                padding: 15px;
                margin-bottom: 15px;
                background: white;
                box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            }
            
            body.dark-mode .mobile-card {
                background: #34495e;
                border-color: #3d566e;
            }
            
            .input-group label {
                font-size: 16px;
            }
        }

        /* 纸飞机图标 */
        .paper-plane-icon {
            display: inline-block;
            width: 24px;
            height: 24px;
            background-image: url("{{ url_for('static', filename='paper_plane_icon.svg') }}");
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
            margin-right: 8px;
            vertical-align: middle;
        }

        body.dark-mode .paper-plane-icon {
            filter: brightness(0) invert(1);
        }

        .header-icon {
            width: 60px;
            height: 60px;
            background-color: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(155, 89, 182, 0.7);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(155, 89, 182, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(155, 89, 182, 0);
            }
        }

        /* 主题切换按钮 */
        .theme-toggle {
            position: absolute;
            top: 20px;
            right: 20px;
            background: var(--light-bg);
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            transition: var(--transition);
            z-index: 1000;
        }

        body.dark-mode .theme-toggle {
            background: #34495e;
        }

        .theme-toggle:hover {
            transform: scale(1.1);
        }

        .theme-toggle svg {
            width: 20px;
            height: 20px;
            fill: var(--text-color);
        }

        /* 进度条样式 */
        .progress-bar {
            height: 8px;
            background-color: #ecf0f1;
            border-radius: 4px;
            margin: 15px 0;
            overflow: hidden;
        }

        body.dark-mode .progress-bar {
            background-color: #3d566e;
        }

        .progress-bar-fill {
            height: 100%;
            background: linear-gradient(to right, var(--primary-color), var(--success-color));
            border-radius: 4px;
            width: 0%;
            transition: width 0.5s ease;
        }

        /* 卡片样式 */
        .card {
            border-radius: var(--border-radius);
            background-color: var(--light-bg);
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            transition: var(--transition);
        }

        body.dark-mode .card {
            background-color: #34495e;
        }

        /* 工具提示 */
        .tooltip {
            position: relative;
            display: inline-block;
            border-bottom: 1px dotted var(--primary-color);
            cursor: help;
        }

        .tooltip .tooltiptext {
            visibility: hidden;
            width: 200px;
            background-color: var(--secondary-color);
            color: #fff;
            text-align: center;
            border-radius: 6px;
            padding: 10px;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            transform: translateX(-50%);
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 14px;
            font-weight: normal;
        }

        .tooltip:hover .tooltiptext {
            visibility: visible;
            opacity: 1;
        }

        /* 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .fade-in {
            animation: fadeIn 0.5s ease forwards;
        }

        /* 表单验证样式 */
        .form-error {
            color: var(--danger-color);
            font-size: 14px;
            margin-top: 5px;
            display: none;
        }

        /* 按钮加载状态 */
        .btn-loading {
            position: relative;
            color: transparent;
        }

        .btn-loading:after {
            content: "";
            position: absolute;
            width: 16px;
            height: 16px;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            margin: auto;
            border: 2px solid transparent;
            border-top-color: #ffffff;
            border-radius: 50%;
            animation: btn-spin 1s ease infinite;
        }

        @keyframes btn-spin {
            from {
                transform: rotate(0turn);
            }
            to {
                transform: rotate(1turn);
            }
        }
        
        /* 系统描述样式 */
        .system-description {
            margin-bottom: 30px;
        }
        
        .system-description h2 {
            color: var(--secondary-color);
            margin-top: 0;
        }
        
        body.dark-mode .system-description h2 {
            color: #ecf0f1;
        }
        
        .input-section h2 {
            color: var(--secondary-color);
            margin-top: 0;
        }
        
        body.dark-mode .input-section h2 {
            color: #ecf0f1;
        }
        
        /* 特色功能区域 */
        .features-section {
            margin-top: 30px;
        }
        
        .features-section h2 {
            text-align: center;
            color: var(--secondary-color);
        }
        
        body.dark-mode .features-section h2 {
            color: #ecf0f1;
        }
        
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        
        .feature-card {
            background: white;
            border-radius: var(--border-radius);
            padding: 25px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }
        
        body.dark-mode .feature-card {
            background: #3d566e;
        }
        
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        }
        
        .feature-icon {
            font-size: 32px;
            margin-bottom: 15px;
        }
        
        .feature-card h3 {
            margin: 0 0 10px 0;
            color: var(--secondary-color);
        }
        
        body.dark-mode .feature-card h3 {
            color: #ecf0f1;
        }
        
        .feature-card p {
            margin: 0;
            color: #7f8c8d;
            font-size: 14px;
        }
        
        body.dark-mode .feature-card p {
            color: #bdc3c7;
        }
        
        .welcome-message {
            text-align: center;
            padding: 20px;
        }
        
        .welcome-message h3 {
            margin-top: 0;
            color: var(--secondary-color);
        }
        
        body.dark-mode .welcome-message h3 {
            color: #ecf0f1;
        }
        
        .header-container {
            text-align: center;
            margin-bottom: 30px;
        }
        
        /* 现代化加载动画 */
        .loading-spinner {
            display: inline-block;
            width: 24px;
            height: 24px;
            border: 3px solid rgba(155, 89, 182, 0.3);
            border-radius: 50%;
            border-top-color: #9b59b6;
            animation: spin 1s ease-in-out infinite;
            margin-right: 10px;
            vertical-align: middle;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* 渐变进度条 */
        .progress-gradient {
            height: 8px;
            border-radius: 4px;
            background: linear-gradient(90deg, #9b59b6, #3498db, #27ae60);
            width: 0%;
            transition: width 0.5s ease;
        }

        /* 淡入淡出效果 */
        .fade-in {
            animation: fadeIn 0.5s ease-in;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* 批量处理结果表格样式 */
        .results-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            border-radius: 8px;
            overflow: hidden;
        }

        .table-header {
            display: flex;
            background: linear-gradient(to right, var(--primary-color), #8e44ad);
            color: white;
            font-weight: bold;
        }

        .table-row {
            display: flex;
            border-bottom: 1px solid #eee;
            padding: 12px 0;
            transition: background-color 0.3s;
        }

        body.dark-mode .table-row {
            border-bottom-color: #3d566e;
        }

        .table-row:nth-child(even) {
            background-color: rgba(155, 89, 182, 0.05);
        }

        body.dark-mode .table-row:nth-child(even) {
            background-color: #34495e;
        }

        .table-row:hover {
            background-color: #e3f2fd;
        }

        body.dark-mode .table-row:hover {
            background-color: #3d566e;
        }

        .table-cell {
            flex: 1;
            padding: 10px;
            text-align: left;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .table-header .table-cell {
            padding: 15px 10px;
        }

        .title-cell {
            flex: 2;
        }

        .detail-cell {
            flex: 3;
            white-space: normal;
            word-break: break-word;
        }

        .row-warning {
            background-color: #fff3e0;
            border-left: 4px solid var(--warning-color);
        }

        body.dark-mode .row-warning {
            background-color: #5d503b;
        }

        .row-error {
            background-color: #ffebee;
            border-left: 4px solid var(--danger-color);
        }

        body.dark-mode .row-error {
            background-color: #4d1a1a;
        }

        .row-passed {
            background-color: #e8f5e9;
            border-left: 4px solid var(--success-color);
        }

        body.dark-mode .row-passed {
            background-color: #1e531e;
        }

        .controls {
            display: flex;
            gap: 10px;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        .controls button {
            flex: 1;
            min-width: 100px;
            padding: 10px;
            font-size: 14px;
        }

        /* 响应式表格 */
        @media (max-width: 768px) {
            .table-header, .table-row {
                flex-direction: column;
            }
            
            .table-cell {
                width: 100%;
                border-bottom: 1px solid #eee;
                padding: 8px 0;
            }
            
            body.dark-mode .table-cell {
                border-bottom-color: #3d566e;
            }
            
            .table-cell:last-child {
                border-bottom: none;
            }
            
            .title-cell, .detail-cell {
                flex: 1;
            }
            
            .features-grid {
                grid-template-columns: 1fr;
            }
            
            .card {
                padding: 20px;
            }
        }
    </style>
    {% block extra_styles %}{% endblock %}
</head>
<body>
    <button class="theme-toggle" id="theme-toggle" title="切换主题">
        <svg viewBox="0 0 24 24">
            <path d="M12,5.5A3.5,3.5 0 0,1 15.5,9A3.5,3.5 0 0,1 12,12.5A3.5,3.5 0 0,1 8.5,9A3.5,3.5 0 0,1 12,5.5M5,8C5.56,8 6.08,8.15 6.53,8.42C6.38,9.85 6.8,11.27 7.66,12.38C7.16,13.34 6.16,14 5,14A3,3 0 0,1 2,11A3,3 0 0,1 5,8M19,8A3,3 0 0,1 22,11A3,3 0 0,1 19,14C17.84,14 16.84,13.34 16.34,12.38C17.2,11.27 17.62,9.85 17.47,8.42C17.92,8.15 18.44,8 19,8M5.5,18.25C5.5,16.18 8.41,14.5 12,14.5C15.59,14.5 18.5,16.18 18.5,18.25V20H5.5V18.25M0,20V18.5C0,17.11 1.89,15.94 4.45,15.6C3.86,16.28 3.5,17.22 3.5,18.25V20H0M24,20H20.5V18.25C20.5,17.22 20.14,16.28 19.55,15.6C22.11,15.94 24,17.11 24,18.5V20Z"></path>
        </svg>
    </button>
    
    <div class="container">
        {% block content %}{% endblock %}
    </div>
    {% block scripts %}{% endblock %}
    
    <script>
        // 主题切换功能
        document.addEventListener('DOMContentLoaded', function() {
            const themeToggle = document.getElementById('theme-toggle');
            const body = document.body;
            
            // 检查本地存储中的主题设置
            const savedTheme = localStorage.getItem('theme');
            if (savedTheme === 'dark') {
                body.classList.add('dark-mode');
            }
            
            themeToggle.addEventListener('click', function() {
                body.classList.toggle('dark-mode');
                
                // 保存主题设置到本地存储
                if (body.classList.contains('dark-mode')) {
                    localStorage.setItem('theme', 'dark');
                } else {
                    localStorage.setItem('theme', 'light');
                }
            });
        });
    </script>
</body>
</html>